Repository navigation
feat: capture project activities at PIN terminals - #60
Conversation
Co-authored-by: patrickschiller <39913537+patrickschiller@users.noreply.github.com> Signed-off-by: Patrick Schiller <39913537+patrickschiller@users.noreply.github.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b19d2aff9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| projectName: r.project?.name ?? null, | ||
| orderNo: r.serviceOrder?.orderNo ?? null, | ||
| orderTitle: r.serviceOrder?.title ?? null, | ||
| activity: r.activity, |
There was a problem hiding this comment.
Include catalog activity names in ERP exports
For entries booked with a catalog activity at a PIN terminal, the booking path sets activityId but leaves the legacy activity field null. Consequently, /api/erp/timeentries exports a null activity even though the employee selected one; catalog-only corrections likewise export null or stale free text. Include catalogActivity in the query and resolve its name before falling back to r.activity, as the project report now does, so ERP consumers receive the recorded work description.
Useful? React with 👍 / 👎.
Add project-first selection, preserve terminal pause accounting and historical reports, and make project activity catalogs and service orders mutually exclusive for new entries. Signed-off-by: Patrick Schiller <p@trickschiller.de>
Signed-off-by: Patrick Schiller <p@trickschiller.de>
Implements PIN terminal activity tracking from Discussion #39. Quantity tracking remains open in #66.
The local OpenClockwork 2.3.0 test stack passed 714 PostgreSQL API integration tests, 528 unit tests, and 8 Chromium tests. The browser suite covers both catalog restrictions, PIN stamping, a gapless project switch, and both customer CSV exports.
Follow the local PIN test guide to reproduce the flows with synthetic data.